package com.junbao.module.main.kt

/**
 *    author : Majunbao
 *    github : https://github.com/MaJunBaox
 *    time   : 2022/8/28 12:59 下午
 *    desc   :
 */
class Demo {
    fun test(){
        showToast({
                  println("hahah")
        },{
            println("hahah")
        },"200")
    }


    private inline fun showToast(function:()->Unit,noinline function2: () -> kotlin.Unit,message:String){
        function.invoke()
        function2.invoke()
        println(message)
    }
}